package com.zwb.demo.easyweb.modules.config.entity;

import com.zwb.demo.easyweb.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
/**
* 校验表
*
* @author zwb
* @date 2020-04-26T14:56:54.008456400
*/
@Entity
@Table(name = "t_form_validate")
@Data
@EqualsAndHashCode(callSuper = true)
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
public class  FormValidatePO extends BaseEntity implements Serializable {
private static final long serialVersionUID = 1L;


    /**
     * id
     */
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(name = "id", insertable = false, nullable = false, length = 32)
    private String id;
    /**
     * 展示名字
     */
    @Column(name = "label", nullable = false)
    private String label;
    /**
     * 正则表达式
     */
    @Column(name = "value", nullable = false)
    private String value;
    /**
     * 排序
     */
    @Column(name = "sort", nullable = true)
    private Integer sort;

}